<?php
require('inc/init.inc.php');

require_once(PATH.'class/gestion/zones.class.php');
require_once(PATH.'class/gestion/clients.class.php');
// Definition des titres
$h2=LNG_CLI_PLUS;
if ( isset( $_POST['submit'] ) )
	$attribut = Array ( 'cli_zon_id'	=> $_POST['cli_zon_id']);
else
	$attribut = Array ( 'cli_zon_id'	=> -1);
// Affichage de l'en-tête
dohtml_init();
?>
<form method='post' action='ajoutclient.php'>
<?php
        dohtml_formselect('labelagauche',
						'cli_zon_id',
                        'Zone',
                        'La zone du client',
                        Zones::Select($db,-1),
						True,
						$attribut['cli_zon_id']);
        dohtml_formbouton('labelagauche', 'Rechercher');
?>
</form>
<?php
if ( isset( $_POST['submit'] ) )
{
	Clients::Tableau_zon($db, $_POST['cli_zon_id']);
	echo '<br />';
	dohtml_lienajout('client.php?id=-1', 'Confirmation: Ajouter un nouveau client');
}

// Finalisation
require(PATH.'inc/final.inc.php');
?>
